<?php
/**
 * 
 * 验证器
 * 
 * */
namespace app\admin\validate;
use think\Validate;

class Category_validate extends Validate
{
    //规则
    protected $rule = [
        'catname'          => 'require',
        'listorder'          => 'number',
      ];
    
    //自定义提示信息
    protected $message = [
        'catname.require'       =>  '栏目名称不能为空!',
        'listorder'          => '排序只能位数字',
       ];
}